package com.windy.service.impl;

import com.windy.api.product.ProductClient;
import com.windy.app.entity.Product;
import com.windy.service.IAppIndexService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("appIndexService")
public class AppIndexServiceImpl implements IAppIndexService {

    @Autowired
    private ProductClient productClient;

    @Override
    public Product findProductById(Long id) {
        return productClient.findProductById(id);
    }
}
